package com.example.good.mapper;

import com.example.good.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface AddressMapper {
    Integer insert(Address address);
    Integer countByUid(Integer uid);
    List<Address> findByUid(Integer uid);
    Address findByAid(Integer aid);
    Integer updateNoDefault(Integer uid);
    Integer updateDefaultByAid(
            Integer aid,
            String modifiedUser,
            Date modifiedTime
    );
    Integer deleteByAid(Integer aid);
    Address findLastModified(Integer uid);
    Integer updateAddressByAid(Address address);
}
